package com.exwave.socialgame.model_wolfgame.wolfdata;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("Event 事件类")
public class Event {

    //8代表平安夜，9代表有人阵亡

    @ApiModelProperty("事件发起人集合")
    List<Integer> source;//发起人num位置
    @ApiModelProperty("事件种类")
    Integer op;//操作：ability
    @ApiModelProperty("事件目标")
    List<Integer> dest;//目标

    public Event(List<Integer> source, Integer op, List<Integer> dest) {
        this.source = source;
        this.op = op;
        this.dest = dest;
    }

    public List<Integer> getSource() {
        return source;
    }

    public void setSource(List<Integer> source) {
        this.source = source;
    }

    public Integer getOp() {
        return op;
    }

    public void setOp(Integer op) {
        this.op = op;
    }

    public List<Integer> getDest() {
        return dest;
    }

    public void setDest(List<Integer> dest) {
        this.dest = dest;
    }

    //增加发起人员
    public void addSource(Integer locate) {
        this.source.add(locate);
    }

    //增加目标人员
    public void addDest(Integer locate) {
        this.dest.add(locate);
    }
}
